package edu.ahpu.propertymanage.serviceimpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.ahpu.propertymanage.dao.ProjectDao;
import edu.ahpu.propertymanage.dataclass.DisProject;
import edu.ahpu.propertymanage.dataclass.PageSet;
import edu.ahpu.propertymanage.dataclass.RepProject;
import edu.ahpu.propertymanage.dataclass.SecProject;
import edu.ahpu.propertymanage.pojo.Project;
import edu.ahpu.propertymanage.service.ProjectService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectDao,Project> implements ProjectService{
    @Override
    public List<DisProject> disProject(PageSet pageSet) {
        return this.baseMapper.disProject(pageSet);
    }

    @Override
    public long countDis(PageSet pageSet) {
        return this.baseMapper.countDis(pageSet);
    }

    @Override
    public List<RepProject> repProject(PageSet pageSet) {
        return this.baseMapper.repProject(pageSet);
    }

    @Override
    public long countRepair(PageSet pageSet) {
        return this.baseMapper.countRepair(pageSet);
    }

    @Override
    public List<SecProject> secProject(PageSet pageSet) {
        return this.baseMapper.secProject(pageSet);
    }

    @Override
    public long countSecurity(PageSet pageSet) {
        return this.baseMapper.countSecurity(pageSet);
    }
}
